$(function(){
	//点击事件加载
	$("body").on("click",".menhuxinxi_left_menu",zuocetiaozhuang);
	$("body").on("click",".zhongzhinongshi_left_menu",zuocetiaozhuang);
	$("body").on("click",".zhongzhibaodian_left_menu",zuocetiaozhuang);
	$("body").on("click",".gerenzhongxin_left_menu",zuocetiaozhuang);
	$("body").on("click",".xiaoxizhongxin_left_menu",zuocetiaozhuang);
	
	$("body").on("click",".menu_top_menu_zuixin",zuocetiaozhuang);
	$("body").on("click",".menu_top_menu_zhengce",zuocetiaozhuang);
	$("body").on("click",".menu_top_menu_chanye",zuocetiaozhuang);
	$("body").on("click",".menu_top_menu_keji",zuocetiaozhuang);
	$("body").on("click",".menu_top_menu_shichang",zuocetiaozhuang);
	
	$("body").on("click",".content_down",zuocetiaozhuang);
	$("body").on("click",".zhishiku_ysy",zuocetiaozhuang);
	$("body").on("click",".biaochongliebiao_xiaocai",zuocetiaozhuang);
	//病虫列表跳转病虫详情页
	$("body").on("click",".menu-wrap",zuocetiaozhuang);
	$("body").on("click",".zhuanjiaketang",zuocetiaozhuang);
	$("body").on("click",".tudiliebiao_1",zuocetiaozhuang);
	$("body").on("click",".tianqiyubao_xiaocai",zuocetiaozhuang);
	$("body").on("click",".jiankangguanli_xiaocai",zuocetiaozhuang);
	//博士帽跳转智能回复
	$("body").on("click",".back",zuocetiaozhuang);
	$("body").on("click",".content_one2",zuocetiaozhuang);
	$("body").on("click",".create_renwu_dabao",zuocetiaozhuang);
	//跳转任务 wrf
	$("body").on("click",".renwu_wrf",zuocetiaozhuang);
	$("body").on("click",".tianqi_wrf",zuocetiaozhuang);
	
	//返回上一级
	$("body").on("click",".fanhuishangyiji_ysy",fanhuishangyiji_ysy);	
});
function zuocetiaozhuang(){
	var class_name = $(this).attr("class");
	var index = class_name.lastIndexOf(" ");  
	class_name  = class_name .substring(index + 1, class_name .length);
	switch(class_name){
		case 'menhuxinxi_left_menu':window.location.href="./menhuxinxi.html";break;
		case 'zhongzhinongshi_left_menu':window.location.href="./tudiliebiao.html";break;
		case 'zhongzhibaodian_left_menu':window.location.href="./zhongzhibaodian.html";break;
		case 'gerenzhongxin_left_menu':window.location.href="./renwu.html";break;
		case 'xiaoxizhongxin_left_menu':window.location.href="./xiaoxizhongxin.html";break;
		
		case 'menu_top_menu_zuixin':window.location.href="./menhuxinxi.html";break;
		case 'menu_top_menu_zhengce':window.location.href="./menhuxinxi_zhengce.html";break;
		case 'menu_top_menu_chanye':window.location.href="./menhuxinxi_chanye.html";break;
		case 'menu_top_menu_keji':window.location.href="./menhuxinxi_keji.html";break;
		case 'menu_top_menu_shichang':window.location.href="./menhuxinxi_shichang.html";break;
		
		case 'content_down':window.location.href="./biaozhun_shouce.html";break;
		case 'zhishiku_ysy':window.location.href="./zhishiku.html";break;
		case 'biaochongliebiao_xiaocai':window.location.href="./chonghai_list.html";break;
		case 'menu-wrap':window.location.href="./chong_xiangqing.html";break;
		case 'zhuanjiaketang':window.location.href="./zhuanjia.html";break;
		case 'tudiliebiao_1':window.location.href="./SanQiJidi.html";break;
		case 'tianqiyubao_xiaocai':window.location.href="./weather.html";break;
		case 'jiankangguanli_xiaocai':window.location.href="./TestSoilReport.html";break;
		case 'back':window.location.href="./Session.html";break;
		case 'content_one2':window.location.href="./studyDetail.html";break;
		case 'create_renwu_dabao':window.location.href="./NewTasks.html";break;
		case 'renwu_wrf':window.location.href="./renwu.html";break;
		case 'tianqi_wrf':window.location.href="./weather.html";break;
	}
}
function fanhuishangyiji_ysy(){
	history.go(-1);
}
